﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using imaginecup.util;
using imaginecup.information;
using imaginecup.objectManager;
using Imaginecup.gameState.malaria.componentInit;

namespace Imaginecup.gameState.malaria.component
{
    public abstract class MalariaStateBaseComponent : BaseComponent
    {
        protected SComponentTypeID m_ComponentTypeID;

        public MalariaStateBaseComponent(GObjectID a_GID, ObjectManager ObjMan, SComponentTypeID componentTypeID)
            : base(a_GID, ObjMan)
        {
            m_ComponentTypeID = componentTypeID;
        }

        public override SComponentTypeID GetComponentTypeID()
        {
            return m_ComponentTypeID;
        }

        public override ICmpEntity GetEntity()
        {
            return (ICmpEntity)m_ObjectMan.QueryInterface(m_ObjectID, InterfaceID.IID_ENTITY);
        }


    }
}
